import math

def calcCircleArea(r):
  return math.pi * r * r
r = int(input("请输入圆的半径"))

print("半径是 %d的圆，其面积是：%d" % (r, calcCircleArea(r)))



def calcRectanglePerimeter(width, height):
  return (width + height) * 2

width = int(input("请输入长方形的长"))
height = int(input("请输入长方形的宽"))
rectanglePerimeterArea = calcRectanglePerimeter(width, height)

print("长为 %d，宽为 %d的长方形的周长是 %d" % (width, height, rectanglePerimeterArea))


def getMaxNum(*nums):
  numMax = 0

  for num in nums:
    if num > numMax:
      numMax = num
  return numMax

max = getMaxNum(1,20909,8878,28932,7788)
print("1,20909,8878,28932,7788中最大数是 %d" % max)
